package com.zkthink.ceres.info.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;


/**
 * <p>
 * 实体类 平台信息表
 * </p>
 *
 * @since 2020-12-30
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ceres_platform_info")
@ApiModel(value = "PlatformInfo", description = "平台信息表")
public class PlatformInfo extends Entity<Long> {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @Length(max = 20, message = "id长度不能超过20")
    @TableField(value = "id")
    @Excel(name = "id")
    private Long id;

    /**
     * 关于我们
     */
    @ApiModelProperty(value = "关于我们")
    @TableField(value = "about_us")
    @Excel(name = "关于我们")
    private String aboutUs;

    /**
     * 客服电话
     */
    @ApiModelProperty(value = "客服电话")
    @Length(max = 30, message = "客服电话长度不能超过30")
    @TableField(value = "kf_phone")
    @Excel(name = "客服电话")
    private String kfPhone;

    /**
     * 后台地址
     */
    @ApiModelProperty(value = "后台地址")
    @Length(max = 255, message = "id长度不能超过255")
    @TableField(value = "ht_address")
    @Excel(name = "后台地址")
    private String htAddress;

    /**
     * 公司公众号
     */
    @ApiModelProperty(value = "公司公众号")
    @Length(max = 255, message = "公司公众号长度不能超过255")
    @TableField(value = "wexin")
    @Excel(name = "公司公众号")
    private String weXin;

    /**
     * 官网网址
     */
    @ApiModelProperty(value = "官网网址")
    @Length(max = 255, message = "官网网址长度不能超过255")
    @TableField(value = "gs_gw")
    @Excel(name = "官网网址")
    private String gsGw;

    /**
     * 官网网址
     */
    @ApiModelProperty(value = "客服微信号")
    @Length(max = 255, message = "客服微信号长度不能超过30")
    @TableField(value = "kf_weixin")
    @Excel(name = "客服微信号")
    private String kfWeixin;

    @Builder
    public PlatformInfo(long id, String aboutUs, String kfPhone, String htAddress, String weXin, String gsGw, String kfWeixin) {
        this.id = id;
        this.aboutUs = aboutUs;
        this.kfPhone = kfPhone;
        this.htAddress = htAddress;
        this.weXin = weXin;
        this.gsGw = gsGw;
        this.kfWeixin = kfWeixin;
    }
}
